<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";	
%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="<%=basePath %>static/css/plugins/bootstrap-3.3.7/css/bootstrap.css" />
<script src="<%=basePath %>static/js/jquery-3.7.1.min.js"></script>
<script src="<%=basePath %>static/css/plugins/bootstrap-3.3.7/js/bootstrap.js"></script>
<title>套餐更换</title>
</head>
 <body>

   <div>
    <div class="container">
        <div class="panel panel-default">
            <div class="panel-heading">
                <span class="glyphicon glyphicon-th-list" aria-hidden="true"></span>
               欢迎使用嗖嗖移动大厅
                <form action="${pageContext.request.contextPath }/changeTaoCan">
                      <input class="btn btn-primary btn-xs" type="submit" value="退回更改套餐界面"/>
                </form>
                <form action="${pageContext.request.contextPath }/mainmenu" style="float: right;">
                      <input class="btn btn-primary btn-xs" type="submit" value="退回主界面"/>
                </form>
               <form action="${pageContext.request.contextPath }/recalculateConsumption" method="post">
              <table class="table table-bordered">
               
                  <tr>
                     
                      <th>尊敬的客户:${cardNumber }您好，恭喜您更换套餐成功！<br>您的消费数据及实际消费金额统计如下<br>(含更换套餐后统计结果)</th>
                  </tr>
                  <tr>
                      <th>套餐外额外消费金额为:</th>
                      <td>${tongji }</td>
                      
                  </tr>
                  
                  <tr>
                      <th>账户余额如下：</th>
                      <td>${a.money}</td>
                 
                  </tr>
                   <tr>
                      <th>当前套餐：</th>
                      <td>
                          <c:choose>
                              <c:when test="${a.taocan == 1}">网虫套餐</c:when>
                              <c:when test="${a.taocan == 2}">话痨套餐</c:when>
                              <c:when test="${a.taocan == 3}">超人套餐</c:when>
                              <c:otherwise>未知套餐</c:otherwise>
                          </c:choose>
                      </td>
                  </tr>
                  <tr>
                      <th>额外消费的流量费：</th>
                      <td>${a.liuliangFee}</td>
                  </tr>
                  <tr>
                      <th>额外消费的通话费：</th>
                      <td>${a.tonghuaFee}</td>
                  </tr>
                  <tr>
                      <th>额外消费的短信费：</th>
                      <td>${a.duanxinFee}</td>
                  </tr>
                
                 
              </table>
                  </form>   

    </div>

</div>
</div>
</div>
        
 </body>

</html>